#ifndef _BOARD_PART_OPT_H_
#define _BOARD_PART_OPT_H_

#include <aos/hal/flash.h>

/* flash APIs */
int board_get_partition(uint32_t addr, uint32_t len, hal_partition_t* no, uint32_t* offset);
int board_erase(unsigned int offset, unsigned int len);
int board_read_data(unsigned int offset, unsigned char *buf, unsigned int len);
int board_write_data(unsigned int offset, unsigned char *buf, unsigned int len);
hal_logic_partition_t *board_get_info(hal_partition_t no);

#endif